//
//  main.m
//  homework第六部分
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Food.h"
#import "Dish.h"
#import "Soup.h"
#import "Dessert.h"
#import "Drink.h"
int main(int argc, const char * argv[]) {
    @autoreleasepool {
#if 0
        //第二十六类 主食类
        Food *fo1 = [[Food alloc] init];
        [fo1 setName:@"馒头"];
        [fo1 setStuff:@"面粉"];
        [fo1 setPrice:1];
        [fo1 myPrint];
        
        Food *fo2 = [[Food alloc] initWithName:@"米饭" withStuff:@"大米" withPrice:1];
        [fo2 myPrint];
        
#endif

#if 0
        //第二十七类 正菜类
        Dish *di1 = [[Dish alloc] init];
        [di1 setName:@"炖骨头"];
        [di1 setStuff:@"猪腿骨"];
        [di1 setPrice:80];
        [di1 myPrint];
        
        Dish *di2 = [[Dish alloc] initWithName:@"石锅鱼" withStuff:@"白鲢鱼" withPrice:88];
        [di2 myPrint];
        
#endif
#if 0
        //第二十八类 汤类
        Soup *so1 = [[Soup alloc] init];
        [so1 setName:@"西红柿蛋花汤"];
        [so1 setStuff:@"西红柿,鸡蛋"];
        [so1 setPrice:12];
        [so1 myPrint];
        
        Soup *so2 = [[Soup alloc] initWithName:@"火腿玉米汤" withStuff:@"火腿肉,玉米.,松茸" withPrice:40];
        [so2 myPrint];
        
#endif
        
#if 0
        //第二十九类 茶点类
        Dessert *des1 = [[Dessert alloc] init];
        [des1 setName:@"奶油蛋糕"];
        [des1 setStuff:@"奶油,鸡蛋,高筋面粉,糖,油"];
        [des1 setPrice:50];
        [des1 myPrint];
        
        Dessert *des2 = [[Dessert alloc]initWithName:@"蛋挞" withStuff:@"蛋挞皮,鸡蛋,黄油" withPrice:5];
        [des2 myPrint];
#endif
        
#if 1 
        //第三十类 饮品类
        Drink *dr1 = [[Drink alloc] init];
        [dr1 setName:@"红茶"];
        [dr1 setStuff:@"茶叶,热水"];
        [dr1 setPrice:60];
        [dr1 myPrint];
        
        Drink *dr2 = [[Drink alloc]initWithName:@"咖啡" withStuff:@"咖啡豆,热水,牛奶,糖" withPrice:30];
        [dr2 myPrint];
#endif
        
    }
    return 0;
}
